//
//  LoginRequest.m
//  EasyToo
//
//  Created by zhengzhe on 13-8-24.
//
//

#import "LoginRequest.h"

@implementation LoginRequest

- (id)initWithAccount:(NSString*)account
             Password:(NSString*)password
             Delegate:(id<ServerCommunicationDelegate>)delegate;
{
    self = [super init];
    if (self) {
        self.account = account;
        self.password = password;
        self.delegate = delegate;
        self.requestName = @"LoginResponse";
        
        [self.bodyJsonDict setObject:self.account forKey:@"id"];
        [self.bodyJsonDict setObject:self.password forKey:@"pwd"];
        [self.bodyJsonDict setObject:@"1" forKey:@"type"];
        
        [self.headerJsonDict setObject:@"016006" forKey:@"TranCode"];
                
        [self buildJsonRequest];
    }
    return self;
}

- (void)dealloc
{
    self.account = nil;
    self.password = nil;
    [super dealloc];
}

@end
